<template>
  <div>
    testAttr
    <TestAttr2 v-bind="$attrs">
      <template #bottom><div>底部</div></template>
      <template #top>头部</template>
      <template #center>中间</template>
       其他内容
    </TestAttr2>
  </div>
</template>
<script lang="ts">
import TestAttr2 from "../TestAttr2/index.vue";

export default {
   inheritAttrs: false,
  components: {
    TestAttr2
  }
}
</script>